package com.ruoyi.medicine1.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品基本信息对象 medicine
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
public class TbMedicine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long medicineId;

    /** 药品名 */
    @Excel(name = "药品名")
    private String name;

    /** 通用名 */
    @Excel(name = "通用名")
    private String genericName;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 剂型 */
    @Excel(name = "剂型")
    private String dosageForm;

    /** 规格 */
    @Excel(name = "规格")
    private String strength;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date createdAt;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date updatedAt;

    public void setMedicineId(Long medicineId) 
    {
        this.medicineId = medicineId;
    }

    public Long getMedicineId() 
    {
        return medicineId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setGenericName(String genericName) 
    {
        this.genericName = genericName;
    }

    public String getGenericName() 
    {
        return genericName;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setDosageForm(String dosageForm) 
    {
        this.dosageForm = dosageForm;
    }

    public String getDosageForm() 
    {
        return dosageForm;
    }

    public void setStrength(String strength) 
    {
        this.strength = strength;
    }

    public String getStrength() 
    {
        return strength;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("medicineId", getMedicineId())
            .append("name", getName())
            .append("genericName", getGenericName())
            .append("description", getDescription())
            .append("dosageForm", getDosageForm())
            .append("strength", getStrength())
            .append("price", getPrice())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
